Repository navigation
fix(bigquery): default query results polling timeout - #18887
huong8373tt-beep wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the default timeout behavior in _reload_query_results within the BigQuery query job module. Specifically, the default timeout parameter is changed from None to POLLING_DEFAULT_VALUE. When the timeout is set to this default, the method falls back to the transport timeout, and if that is not set, it now defaults to DEFAULT_GET_JOB_TIMEOUT instead of None. Unit tests have been added and updated to reflect these changes. There are no review comments, so I have no feedback to provide.
Signed-off-by: Slai.life <huong8373tt@gmail.com>
|
I added a focused regression test for the maintainer's point: |
|
The requested |
Summary
DEFAULT_GET_JOB_TIMEOUTto defaultjobs.getQueryResultspolling requests fromQueryJob.result()timeout=NonebehaviorNonetransport timeout selection, and update affected polling expectationsFixes #18857.
Testing
python -m pytest tests/unit/job/test_query.py -q(64 passed)black --check google/cloud/bigquery/job/query.py tests/unit/job/test_query.pygit diff --checkpython -m compileall -q google tests/unit/job/test_query.pyDisclosure
Slai Agent Runtime performed the investigation, implementation, and testing of this contribution. The account owner authorized the submitted changes and is responsible for the submission.